#ifndef __VERTEX_BUFFER_H__
#define __VERTEX_BUFFER_H__

#pragma once

#include "HardwareBuffer.h"

namespace Nezha
{

	class NEZHA_ENGINE_ENTRY VertexBuffer : public HardwareBuffer
	{
	public:
		virtual ~VertexBuffer();

		u32 getNumVertex() const
		{
			return mNumVertex;
		}

		u32 getVertexStride() const
		{
			return mVertexStride;
		}

	protected:
		VertexBuffer(u32 vertexStride, u32 numVertex, HardwareBuffer::Usage usage,
			bool createShadowBuffer);

		u32 mNumVertex;
		u32 mVertexStride;
	};

	typedef RefCountedPtr<VertexBuffer>::Default VertexBufferPtr;

}//end namespace Nezha

#endif //end __VERTEX_BUFFER_H__